<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <%@include file="style.jsp" %>
    <%@include file="script.jsp" %>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/orderlang/distributor/css/return_list.css"/>
    <title>退货单</title>
</head>
<body onselectstart="return false">
<div id="container_1" style="height:100%">
    <div style="position: relative">
        <%@include file="header.jsp" %>
    </div>
    <div id="content" class="clearfix">
        <%@include file="left_menu.jsp" %>
        <!--内容部分-->
        <div class="right-content" style="margin:75px 20px 0 213px;">
            <p class="brand">
                <a>订单</a>><a class="now">退货单</a>
            </p>
            <div class="content">
                <div class="top-block">
                    <div class="search-box fl">
                        <input type="text" placeholder="请输入订单号/退货单/客户"/>
                        <span></span>
                    </div>
                    <div class="date fl">
                        <input id="datePicker" type="text" placeholder="请选择退货日期" onchange="changes()"/>
                    </div>
                    <div class="add-order fr"><a href="${pageContext.request.contextPath}/return/addReturnBill">新增退货单</a></div>
                    <div class="state">
                        <ul class="clearfix">
                            <li class="active">全部订单</li>
                            <li>待退单审核</li>
                            <li>待收货确认</li>
                            <li>待退款确认</li>
                            <li>待收款确认</li>
                            <li>已完成</li>
                            <li>已取消</li>
                        </ul>
                    </div>
                </div>
                <div class="product-list">
                    <table>
                        <thead>
                        <tr>
                            <td></td>
                            <td>退单号</td>
                            <td>关联单号</td>
                            <td>退单时间</td>
                            <td>客户</td>
                            <td>订单金额</td>
                            <td>退货单状态</td>
                            <td></td>
                        </tr>
                        </thead>
                        <tbody>
                       
                        <c:forEach items="${materialRejectBills}" var="iR">
                        <tr>
                            <td></td>
                            <td>DH_${iR.code}</td>
                            <td>DH.${iR.orderCode}</td>
                            <td><fmt:formatDate value="${iR.createTime}" pattern="yyyy-MM-dd hh:mm"/></td>
                            <td>${iR.name}</td>
                            <td>￥${iR.amount}</td>
                            <td class="order-state">
                                <p>${iR.state}</p>
                            </td>
                            <td>
                                <button class="detail" onclick="orderDetail(${iR.id})">查看</button>
                                <button class="check">审核</button>
                                <button class="back">退回</button>
                                <button class="confirm">确认</button>
                                <button class="delete">取消</button>
                            </td>
                        </tr>
                        </c:forEach>
                        </tbody>
                    </table>
                    <!-- -----分页----- -->
                    <div class="quotes" style="margin-top: 50px"></div>
                </div>
            </div>
        </div>
        <script src="${pageContext.request.contextPath}/static/orderlang/distributor/js/return_list.js"></script>
        <!--内容部分结束-->
    </div>
</div>

</body>
</html>